<?php
include_once("../../includes/metodos.php");

function edit($id){
	connectSql();
	$conteudo = $_POST['conteudo'];

	$query = mysql_query("UPDATE econ_institucional SET conteudo='$conteudo' WHERE id=".$id);
	if($query){
		echo '<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">location.href="index.php";</SCRIPT>';
	}else{
		echo mysql_error();
	}
}
?>